package com.design.pattern.observer.guava;import com.google.common.eventbus.Subscribe;/** * create by yufeng on 2021/7/5 21:19 */public class PojoEvent {    @Subscribe    public void observer(Pojo pojo){//        if(arg instanceof Pojo){            System.out.println("执行PojoEvent方法，传参为：" + pojo);//        }    }}